﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HelloWindsor.Interfaces;

namespace HelloWindsor
{
    public class HttpServiceWatcher : IWatcher
    {
        private INotifier notifier;

        public HttpServiceWatcher(INotifier notifier)
        {
            this.notifier = notifier;
        }

        #region IWatcher Members

        public string Status { get; set; }

        public void StartWatching()
        {
            Status = "We are watching...";
            notifier.Notifiy(Status);
            
        }

        public void StopWatching()
        {
            Status = "We gave up watching...";
            notifier.Notifiy(Status);
            
        }

        #endregion
    }
}
